package com.thingsgrid.application.wrapper;

import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import com.thingsgrid.application.entity.Application;
import com.thingsgrid.application.vo.ApplicationVO;

/**
 * 应用表包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2019-08-13
 */
public class ApplicationWrapper extends BaseEntityWrapper<Application, ApplicationVO>  {

	public static ApplicationWrapper build() {
		return new ApplicationWrapper();
 	}

	@Override
	public ApplicationVO entityVO(Application application) {
		ApplicationVO applicationVO = BeanUtil.copy(application, ApplicationVO.class);

		return applicationVO;
	}

}
